package com.example.computer_exam_training_sys.service;

import com.example.computer_exam_training_sys.mapper.UserExamMapper;
import com.example.computer_exam_training_sys.vo.UserExamDTO;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserExamService {
    @Autowired
    private UserExamMapper userExamMapper;

    public List<UserExamDTO> getUserExamPapers(Integer userId) {
        return userExamMapper.getExamPapersByUserId(userId);
    }

    public List<UserExamDTO> getUserExamsByPaperId(Integer paperId) {
        return userExamMapper.getUserExamsByPaperId(paperId);
    }
}


